﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="left.aspx.cs" Inherits="RGPWEB.left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../../../inc/Style/leftbar.css"  rel="stylesheet" type="text/css"/>    
</head>

<body style="margin:0px;padding:0px">

<form id="form1" runat="server" >
<div class="sdmenu" id="my_menu" style="padding-top:0px;">     
    <asp:TreeView ID="MenuTreeView" runat="server">
    </asp:TreeView>
</div>

</form>
<table border="0" cellspacing="0" cellpadding="0" class="closebar">
  <tr>
    <td align="center" valign="middle" id="aa" onclick="hidFrame()">隐藏左边菜单</td>
  </tr>
</table> 

   </body>

<script src="../../../inc/Script/leftmenu.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    // <![CDATA[
    var myMenu;
    window.onload = function() {
        myMenu = new SDMenu("my_menu");
        myMenu.init();
        var firstSubmenu = myMenu.submenus[0];
        myMenu.expandMenu(firstSubmenu);
    };
    // ]]>
</script>
<script type="text/javascript" language="javascript" >
    var currentChoice = true;
    function hidFrame() {
        var fs = window.parent.document.getElementsByTagName("frameset");
        if (currentChoice) {
            document.getElementById("my_menu").style.display = "none";
            fs[1].cols = "20,*";
            var textId = document.getElementById("aa");
            textId.innerHTML = "显示左边菜单";
        }
        else {
            document.getElementById("my_menu").style.display = "block";
            fs[1].cols = "160,*";
            var textId = document.getElementById("aa");
            textId.innerHTML = "隐藏左边菜单";
        }
        currentChoice = !currentChoice;
    }
</script>
    
    
</html>
